package cn.com.cym.gamezao.service.authorize;

import cn.com.cym.gamezao.base.BaseService;
import cn.com.cym.gamezao.dto.UserDto;
import cn.com.cym.gamezao.dto.UserPasswordDto;
import cn.com.cym.gamezao.dto.UserResponse;
import cn.com.cym.gamezao.entity.authorize.User;

public interface UserService extends BaseService<User> {

    UserResponse login(UserDto userDto);

    UserResponse login(UserDto userDto, Boolean isApplicant);

    UserResponse register(User user);

    UserResponse alterPassword(UserPasswordDto userPasswordDto);

    void logout();

    User fetchOneByUserName(String userName);
}
